Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> table,th,td { border:1px solid black; } caption { display: table-caption; text-align: center; } </style> </head> <body> <p>A caption element is displayed like this:</p> <table> <caption>Monthly savings</caption> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$50</td> </tr> </table> <p>Change the default CSS settings to see the effect.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_caption_default_css by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:47:19 GMT --> </html>
Result:
Try it Yourself - © w3schools.com